package Demo01.Tesk.OuterDemo01;

public class OuterDemo {
    public static void main(String[] args) {
        Outer.method().show();
    }
}

interface Inter {
    void show();
}

class Outer {
    static Inter method() {
        Inter a = new B();
        return a;
    }
    //补齐代码
}

class A implements Inter {
    public void show() {
        System.out.println("HelloWorld");
    }
}

class B implements Inter {
    public void show() {
        System.out.println("sss");
    }
}

//    要求在控制台输出”HelloWorld”

